package edu.sctu.practice.class02.lvchang.test03;

/**
 * Created by Administrator on 2015/10/9.
 */
public class MyTime {

    private int hour;
    private int minute;
    private int second;

    public MyTime(int hour, int minute, int second) {
        this.hour = hour;
        this.minute = minute;
        this.second = second;
    }

    public int getHour() {
        return hour;
    }
    public void setHour(int hour) {
        this.hour = hour;
    }

    public int getMinute() {
        return hour;
    }
    public void setMinute(int minute) {
        this.minute = minute;
    }

    public int getSecond() {
        return hour;
    }
    public void setSecond(int second) {
        this.second = second;
    }


    public void addSecond(int sec) {
        System.out.println(sec + 1);
    }

    public void addMinute(int min) {
        System.out.println(min + 1);
    }

    public void addHour(int hou) {
        System.out.println(hou + 1);
    }

    public void subSecond(int sec) {
        System.out.println(sec + 1);
    }

    public void subMinute(int min) {
        System.out.println(min + 1);
    }

    public void subHour(int hou) {
        System.out.println(hou + 1);
    }

    public void diaPlay() {
        System.out.println("Now time is : ");
        System.out.println(hour + ":" + minute + ":" + second);
    }


}
